package org.moda.sql.visitor;

import net.sf.jsqlparser.statement.select.SelectItem;

/**
 * @ClassName: SelectItem
 * @Description:
 * @Author: xuanyang
 * @Date: 2024-11-25 00:02
 * @Version: 1.0
 **/
public sealed interface SelectItemInfo permits SelectItemInfo.SelectAll, SelectItemInfo.SelectColumn, SelectItemInfo.SelectExpression {
    public static record SelectAll() implements SelectItemInfo {}

    public static record SelectColumn(String column, String alias) implements SelectItemInfo {}

    public static record SelectExpression(String expression, String alias) implements SelectItemInfo {}
}
